home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Source Code / Visual Basic Source Code.iso / vbsource / isconn_1 / code.frm next >
Text File  |  1999-08-31  |  7KB  |  248 lines

  1. VERSION 5.00
  2. Begin VB.Form Form6 
  3.    BorderStyle     =   4  'Fixed ToolWindow
  4.    Caption         =   "Html code"
  5.    ClientHeight    =   6015
  6.    ClientLeft      =   45
  7.    ClientTop       =   285
  8.    ClientWidth     =   8190
  9.    LinkTopic       =   "Form6"
  10.    MaxButton       =   0   'False
  11.    MinButton       =   0   'False
  12.    ScaleHeight     =   6015
  13.    ScaleWidth      =   8190
  14.    ShowInTaskbar   =   0   'False
  15.    StartUpPosition =   2  'CenterScreen
  16.    Begin VB.CommandButton Command4 
  17.       Caption         =   "Image map"
  18.       Height          =   375
  19.       Left            =   120
  20.       TabIndex        =   5
  21.       Top             =   4320
  22.       Width           =   1935
  23.    End
  24.    Begin VB.CommandButton Command3 
  25.       Caption         =   "Add form"
  26.       Height          =   375
  27.       Left            =   120
  28.       TabIndex        =   4
  29.       Top             =   3840
  30.       Width           =   1935
  31.    End
  32.    Begin VB.Frame FRM 
  33.       Caption         =   "Form"
  34.       Height          =   2055
  35.       Left            =   2400
  36.       TabIndex        =   12
  37.       Top             =   3840
  38.       Visible         =   0   'False
  39.       Width           =   4335
  40.       Begin VB.TextBox Text6 
  41.          Height          =   285
  42.          Left            =   1080
  43.          TabIndex        =   6
  44.          Text            =   "Form1"
  45.          Top             =   240
  46.          Width           =   2895
  47.       End
  48.       Begin VB.TextBox Text7 
  49.          Height          =   285
  50.          Left            =   1080
  51.          TabIndex        =   9
  52.          Text            =   "2"
  53.          Top             =   1320
  54.          Width           =   1335
  55.       End
  56.       Begin VB.ComboBox Combo4 
  57.          Height          =   315
  58.          ItemData        =   "code.frx":0000
  59.          Left            =   1080
  60.          List            =   "code.frx":000A
  61.          TabIndex        =   8
  62.          Text            =   "POST"
  63.          Top             =   960
  64.          Width           =   1215
  65.       End
  66.       Begin VB.TextBox Text8 
  67.          Height          =   285
  68.          Left            =   1080
  69.          TabIndex        =   7
  70.          Text            =   "action goes here"
  71.          Top             =   600
  72.          Width           =   1815
  73.       End
  74.       Begin VB.CommandButton Command10 
  75.          Caption         =   "Add it"
  76.          Height          =   255
  77.          Left            =   3360
  78.          TabIndex        =   13
  79.          Top             =   1680
  80.          Width           =   855
  81.       End
  82.       Begin VB.Label Label6 
  83.          AutoSize        =   -1  'True
  84.          BackStyle       =   0  'Transparent
  85.          Caption         =   "Name:"
  86.          Height          =   195
  87.          Left            =   120
  88.          TabIndex        =   17
  89.          Top             =   240
  90.          Width           =   465
  91.       End
  92.       Begin VB.Label Label7 
  93.          AutoSize        =   -1  'True
  94.          BackStyle       =   0  'Transparent
  95.          Caption         =   "No. of fields:"
  96.          Height          =   195
  97.          Left            =   120
  98.          TabIndex        =   16
  99.          Top             =   1320
  100.          Width           =   885
  101.       End
  102.       Begin VB.Label Label8 
  103.          AutoSize        =   -1  'True
  104.          BackStyle       =   0  'Transparent
  105.          Caption         =   "Method:"
  106.          Height          =   195
  107.          Left            =   120
  108.          TabIndex        =   15
  109.          Top             =   960
  110.          Width           =   585
  111.       End
  112.       Begin VB.Label Label9 
  113.          AutoSize        =   -1  'True
  114.          BackStyle       =   0  'Transparent
  115.          Caption         =   "Action:"
  116.          Height          =   195
  117.          Left            =   120
  118.          TabIndex        =   14
  119.          Top             =   600
  120.          Width           =   495
  121.       End
  122.    End
  123.    Begin VB.CommandButton Command2 
  124.       Cancel          =   -1  'True
  125.       Caption         =   "Cancel"
  126.       Height          =   375
  127.       Left            =   6840
  128.       TabIndex        =   2
  129.       Top             =   4320
  130.       Width           =   1215
  131.    End
  132.    Begin VB.CommandButton Command1 
  133.       Caption         =   "Ok"
  134.       Default         =   -1  'True
  135.       Height          =   375
  136.       Left            =   6840
  137.       TabIndex        =   1
  138.       Top             =   3840
  139.       Width           =   1215
  140.    End
  141.    Begin VB.ListBox List1 
  142.       Height          =   3375
  143.       Left            =   0
  144.       TabIndex        =   3
  145.       Top             =   360
  146.       Width           =   2295
  147.    End
  148.    Begin VB.TextBox Text1 
  149.       Height          =   3375
  150.       Left            =   2400
  151.       MultiLine       =   -1  'True
  152.       ScrollBars      =   3  'Both
  153.       TabIndex        =   0
  154.       Top             =   360
  155.       Width           =   5775
  156.    End
  157.    Begin VB.Label Label2 
  158.       AutoSize        =   -1  'True
  159.       BackStyle       =   0  'Transparent
  160.       Caption         =   "Avalable tags"
  161.       Height          =   195
  162.       Left            =   120
  163.       TabIndex        =   11
  164.       Top             =   120
  165.       Width           =   960
  166.    End
  167.    Begin VB.Label Label1 
  168.       AutoSize        =   -1  'True
  169.       BackStyle       =   0  'Transparent
  170.       Caption         =   "Write your html code on the textbox below:"
  171.       Height          =   195
  172.       Left            =   2400
  173.       TabIndex        =   10
  174.       Top             =   120
  175.       Width           =   3015
  176.    End
  177. End
  178. Attribute VB_Name = "Form6"
  179. Attribute VB_GlobalNameSpace = False
  180. Attribute VB_Creatable = False
  181. Attribute VB_PredeclaredId = True
  182. Attribute VB_Exposed = False
  183. Dim tgg(100) As String
  184.  
  185. Private Sub Command1_Click()
  186. On Error Resume Next
  187. Dim i As Integer
  188. Text1.SelStart = 0
  189. Text1.Visible = False
  190. For i = 0 To Len(Text1.Text)
  191. Text1.SelStart = i
  192. Text1.SelLength = 1
  193. If Text1.SelText = """" Then
  194. Text1.SelText = "'"
  195. End If
  196. Next i
  197. Text1.Visible = True
  198. Form1.Label3(ccindexx).Tag = Text1.Text
  199. Unload Me
  200. End Sub
  201.  
  202. Private Sub Command10_Click()
  203. Dim i As Integer
  204. Dim strg As String
  205. FRM.Visible = False
  206.     For i = 1 To Val(Text7.Text)
  207.     strg = strg + "<p>enter your field label name<input type=" & """text""" & " size=" & """20""" & " name=""T" & i & """></p>"
  208. Next i
  209. Text1.SelText = "<form action=""" & Text8.Text & """ method=""" & Combo4.Text & """ name=""" & Text6.Text & """>" & strg & "<p><input type=" & """submit" & """ name=" & """B1""" & " value=" & """Submit""" & "><input type=" & """reset""" & "name=" & """B2""" & "value=" & """Reset""" & "></p>" & " </form>"
  210.  
  211. Text1.SetFocus
  212. End Sub
  213.  
  214. Private Sub Command2_Click()
  215. Unload Me
  216. End Sub
  217.  
  218. Private Sub Command3_Click()
  219. FRM.Visible = True
  220. End Sub
  221.  
  222. Private Sub Command4_Click()
  223. On Error Resume Next
  224. Form8.Show vbModal
  225. End Sub
  226.  
  227. Private Sub Form_Load()
  228. On Error Resume Next
  229. Dim taggg, codde
  230. Open App.Path & "\tags.txt" For Input As #1
  231. Do
  232. Input #1, taggg
  233. Input #1, codde
  234. List1.AddItem taggg
  235. tgg(List1.ListCount) = codde
  236. Loop Until EOF(1)
  237. Close #1
  238. Form6.Text1.Text = Form1.Label3(ccindexx).Tag
  239. End Sub
  240.  
  241. Private Sub List1_DblClick()
  242. On Error Resume Next
  243.  
  244. Text1.SelText = tgg(List1.ListIndex + 1)
  245. Text1.SetFocus
  246. End Sub
  247.  
  248.